﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Top.Api;
using Top.Api.Response;
using Top.Api.Request;

namespace TaoBaoServices
{
    /// <summary>
    /// 子账号管理API
    /// </summary>
    public class SubUserAPI : BaseAPI
    {
        /// <summary>
        /// 查询指定账户的子账号列表
        /// </summary>
        /// <param name="nick"></param>
        /// <param name="sessionKey"></param>
        /// <returns></returns>
        public static SellercenterSubusersGetResponse SellercenterSubusersGetResponse(string nick, string sessionKey)
        {
            SellercenterSubusersGetRequest req = new SellercenterSubusersGetRequest();
            req.Nick = nick;
            return client.Execute(req, sessionKey);
        }
    }
}
